import server from './server'

export function getUserList(){
  return server({
    url:'/user/findAll'
  })
}

export function getOneUser(id:number){
  return server({
    url:'/user/findOne?id='+id,
  })
}

export function getSearchUser(userName:string){
  return server({
    url:'/user/findAll?userName='+ userName
  })
}


export function deleteUser(id:number){
  return server({
    url:'/user/del/'+id
  })
}